<?php
include("connect.php");
$msl = "SELECT count(*) as num, REPAPPT_STATUS  FROM MSL GROUP BY REPAPPT_STATUS";
$billcode = "SELECT count(*) as num, camp FROM BILLCODE GROUP BY camp";

$raw_msl = mysql_query($msl, $conn);
while ($row = mysql_fetch_array($raw_msl, MYSQL_ASSOC))
{
	echo $row["num"];
	echo $row["REPAPPT_STATUS"];
	echo "<br>";
}

$raw_billcode = mysql_query($billcode, $conn);
while ($row = mysql_fetch_array($raw_billcode, MYSQL_ASSOC))
{
	echo $row["num"];
	echo $row["camp"];
	echo "<br>";
}
?>
